<template>
  <div id="app">
    <router-view></router-view>
<!--    <router-view v-slot="{ Component }">-->
<!--      <keep-alive>-->
<!--        <component :is="Component" v-if="$route.meta.keepAlive"/>-->
<!--      </keep-alive>-->
<!--      <component :is="Component" v-if="!$route.meta.keepAlive"/>-->
<!--    </router-view>-->
    <loading/>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import loading from "@/components/loading/loading";
import {useRoute, useRouter} from "vue-router";
import {defineComponent} from "vue"
import * as echarts from 'echarts'
import { provide } from 'vue'

export default defineComponent({
  name: 'app',
  setup() {
    provide('echarts',echarts)
    const router = useRoute();
    // console.log(router.meta.keepAlive)
    return {
      router
    }
  },
  components: {
    // HelloWorld
    loading
  }
})
</script>

<style>
html, body {
  /*background-color: black;*/
  height: 100%;
  margin: 0;
  /*font-size: 14px;*/
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  /*margin-top: 60px;*/
  height: 100%;

}

a {
  color: #4d5aec;
  margin-right: 10px;
}

</style>
